<?
include('inc_security.php');

$type       = getValue('type', 'str', 'GET', '');
$record_id  = getValue('record_id');
$redirect   = getValue('redirect', 'str', 'GET', base64_encode('listing.php'));

$db_check = new db_query('SELECT ' . $id_field . ' FROM ' . $gs_table . ' WHERE ' . $id_field . ' = ' . $record_id . ' AND lang_id = ' . $lang_id);
if ($check = mysql_fetch_assoc($db_check->result))
{
	// Xoa data
	$db_delete = new db_execute('DELETE FROM ' . $gs_table . ' WHERE ' . $id_field . ' = ' . $record_id . ' AND lang_id = ' . $lang_id);
	unset($db_delete);
}
unset($db_check);
redirect(base64_decode($redirect));
?>